Color.applyToElement Method

Applies this color to an element.
 

Parameters

element

Type: HTMLElement
The element to apply the color to.
propertyName

Type: String
The CSS property to set. If omitted, the color will be applied to the background.